package java面向对象.静态属性;
//静态方法只能访问静态成员，不能访问非静态成员

public class text {
    public static void main(String[] args) {
        Student st=new Student("张三",18,"清华大学");
        Student st1=new Student("张三",18,"清华大学");
        Student st2=new Student("张三",18,"清华大学");
        st.show();
        st1.show();
        st2.show();
        Student.setSchool("北京大学");
        System.out.println("修改学校后：");
        st.show();
        st1.show();
        st2.show();
    }
}
